//
//  BHApplyUserAddCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/16.
//

import UIKit

class BHApplyUserAddCell: UITableViewCell {
    @IBOutlet weak var cover_view: UIView!
    
    @IBOutlet weak var name_label: UILabel!
    
    var model: BHApplyUserModel! {
        didSet {
            if model.textDic.count == 0 {
                self.name_label.text = "添加报名信息"
            }else {
                let text = model.textDic.values.first as! String
                if text.isEmpty == true {
                    self.name_label.text = "添加报名信息"
                }else {
                    self.name_label.text = text
                }
            }
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
       
        self.cover_view.addLayerCorner(4, 0, .white)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        
    }
    
}
